package io;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PritfWriterTest {
    public static void main(String[] args) {
        PrintWriter printWriter=null;
        try {
             printWriter = new PrintWriter("d:/11.txt");
            printWriter.print("你好不好");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }finally {
            printWriter.close();
        }

    }
}
